package org.example.controller.yy;


import io.swagger.annotations.Api;
import org.example.entity.yy.Star;
import org.example.service.yy.StarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Api(tags = "星级")
@RequestMapping("/yy/xj")
@CrossOrigin
public class StarController {
    @Autowired
    private StarService starService;

    //星级列表
    @RequestMapping("/list")
    public List<Star> list(){
        return starService.list(null);
    }
}
